//版心宽度
$cententWidth:1240px;

//引入头部导航

//头部banner
.MZ_banner {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;

    .banner {
        width: 2560px;
        height: 450px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: url(../images/List_banner.jpg) no-repeat;
        z-index: -1;
    }
}

// 中部渲染区域center
.MZ_center {
    width: 100%;
    background-color: #f4f4f4;

    .center {
        width: $cententWidth;
        margin: 0 auto;

        .top {
            height: 90px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;

            .listName {
                font-size: 30px;
                color: #515151;
                font-weight: 400;
                margin-top: 20px;
            }

            .box {
                width: 170px;
                display: flex;
                align-items: center;
                position: relative;
                margin-top: 35px;

                .actives{
                    color: #008cff;
                }
                span {
                    font-size: 18px;
                    color: #343434;
                    font-weight: 300;
                    margin-left: 15px;
                    cursor: pointer;

                    // &:nth-child(1) {
                    //     color: #008cff;
                    // }

                   
                }

                .prev {
                    font-size: 5px;
                    font-weight: 300;
                    color: #343434;
                    position: absolute;
                    top: -1px;
                    right: 0;
                    &:hover {
                        color: #008cff;
                    }

                }

                .next {
                    font-size: 5px;
                    font-weight: 300;
                    color: #343434;
                    position: absolute;
                    bottom: -1px;
                    right: 0;
                    &:hover {
                        color: #008cff;
                    }
                }

            }
        }

        /* 渲染区域 list */
        .list {
            ul {
                display: flex;
                flex-wrap: wrap;

                li {
                    width: 303px;
                    height: 375px;
                    background-color: #ffffff;
                    margin-right: 9px;
                    margin-bottom: 10px;
                    position: relative;
                    text-align: center;

                    .goodsImg {
                        height: 230px;
                        margin-top: 30px;
                        margin-bottom: 8px;
                        &:hover {
                            transform-origin: 50% 50%;
                            transform: scale(1.1111);
                        }
                    }

                    .goodsName {
                        padding: 0 30px;
                        font-weight: 400;
                        font-size: 22px;
                        color: #333;
                        margin-bottom: 2px;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }

                    .goodsMsg {
                        padding: 0 20px;
                        color: #666;
                        font-size: 16px;
                        font-weight: 300;
                        margin-bottom: 3px;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }

                    .goodsPrice {
                        font-size: 22px;
                        color: #c00;

                        .w {
                            font-size: 16px;
                        }
                    }

                    // overflow: hidden;

                    // &:hover img {
                    //     transform: scale(1.2);
                    // }

                    &:nth-child(4n) {
                        margin-right: 0;
                    }

                    &:hover {
                        box-shadow: 0 15px 30px rgba($color: gray, $alpha: 0.8);
                    }
                }
            }
        }

        /*  分页 */
        .pages{
            width: 100%;
            height: 50px;
            margin-bottom: 10px;
            position: relative;
            .pageBox{
           
               
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%,-50%);
                
            }

        }
        
        /* 下面的banner图 */
        .c_imgbox {
            width: 100%;
            height: 248px;

            img {
                width: 100%;
                height: 100%;
            }
        }


    }
}

//为您推荐
.MZ_recommend {
    width: 100%;
    height: 660px;
    background-color: #f4f4f4;

    .recommend {
        width: $cententWidth;
        height: 660px;
        margin: 0 auto;

        .top {
            height: 150px;
            line-height: 150px;
            // background-color: pink;
            font-size: 24px;
            color: #333;
            font-weight: 400;
        }

        .wrapAll {
            width: 100%;
            height: 510px;

            .xlb_images {
                height: 420px;
               //background-color: #ffffff;
                z-index: 999;
                position: relative;
                overflow: hidden;

                ul {
                    height: 420px;
                    width: 2480px;
                    background-color: #ffffff;
                    position: absolute;
                    left: 0;
                    top: 0;
                    

                    li {
                        width: 310px;
                        height: 420px;
                        float: left;

                        .iBox {
                            width: 310px;
                            height: 230px;
                            // padding: 40px 10px;
                            overflow: hidden;
                            text-align: center;
                            padding-top: 40px;
                            padding-bottom: 44px;

                            img {
                                width: 230px;
                                height: 230px;

                                &:hover {
                                    transform-origin: 50% 50%;
                                    transform: scale(1.1111);
                                }
                            }

                        }

                        .txtBox {
                            width: 310px;
                            // height: 170px;
                            text-align: center;

                            h4 {
                                font-size: 21px;
                                color: #2b2b2b;
                                font-weight: 400;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                                overflow: hidden;
                                margin-bottom: 10px;
                            }

                            p {
                                font-size: 22px;
                                color: #c00;

                                .w {
                                    font-size: 16px;
                                }
                            }
                        }
                    }
                }
            }

            .ddd {
                height: 90px;
                background-color: #f4f4f4;
                position: relative;

                .active{
                    background: #a1a1a1
                }

                ul {
                    width: 60px;
                    height: 15px;
                    // background-color: greenyellow;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);

                    display: flex;
                    justify-content: space-around;
                    align-items: center;

                  

                    li {
                        width: 11px;
                        height: 11px;
                        border-radius: 50%;
                        background-color: #fff;
                        border: 1px solid #a1a1a1;
                        box-sizing: border-box;
                        cursor: pointer;
                    }
                }
            }

        }
    }
}